import { mask } from './mask/mask.js'
import { lyMessageBox } from './MessageBox/messageBox.js'
import { throttle } from '../utils/brower/event'
export default {
  $mask:throttle(mask,1000),
  $alert(arg){
    return lyMessageBox({...arg,isCancel:false,zIndex:Math.floor(Math.random() * 2021 + 1)})
  },
  $confirm(arg){
    return lyMessageBox({...arg,isCancel:true,zIndex:Math.floor(Math.random() * 2021 + 1)})
  }
}